package cn.ad.model;

import cn.ad.entity.Creative;
import org.apache.ibatis.type.Alias;

import java.util.List;

/***
 * 创意详细信息
 * 
 * @author yujuan.zhang
 * @from 2016-06-20
 * @since V1.0
 *
 */
@Alias("creativeDetailModel")
public class CreativeDetailModel extends Creative {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1760275165117402178L;
	
	/**
	 * 创意分组id
	 */
	private Integer creativeGroupId;
	
	/**
	 * 着陆页地址，（绝对URL路径）
	 */
	private String targetUrl;
	
	/**
	 * 推广的app名称
	 */
	private String appName;
	/**
	 * 推广的app 描述
	 */
	private String appDesc;

	/**
	 * 在APP Store中的ID，主要用于IOS
	 */
	private String storeId;
	
	/**
	 * APP类型，未知 0 android 1 ios 2 windows 3
	 */
	private Integer appType;
	
	/**
	 * APP下载地址
	 */
	private String downloadUrl;
	
	/**
	 * app分类标识，对应app_classes.id
	 */
	private Integer classesId;
	
	/**
	 * app安装包大小，单位MB
	 */
	private Float appVolume;
	
	/**
	 * 包名，主要针对android
	 */
	private String apkName;
	
	/**
	 * 原生创意形式时，原生模版ID
	 */
	private Integer templateId;
	
	/**
	 * 原生创意形式时，原生模版对应的平台ID
	 */
	private Integer platformId;
	
	/**
	 * 原生创意形式时，原生模版对应的平台名称
	 */
	private String platformName;
	
	public Integer getCreativeGroupId() {
		return creativeGroupId;
	}

	public void setCreativeGroupId(Integer creativeGroupId) {
		this.creativeGroupId = creativeGroupId;
	}

	/**
	 * 素材列表(非原生创意形式的素材列表 或者 原生模版的元素列表)
	 */
	private List<AdMaterialDetailModel> materials;
	
	public String getTargetUrl() {
		return targetUrl;
	}

	public void setTargetUrl(String targetUrl) {
		this.targetUrl = targetUrl;
	}

	public String getAppName() {
		return appName;
	}

	public void setAppName(String appName) {
		this.appName = appName;
	}

	public String getStoreId() {
		return storeId;
	}

	public void setStoreId(String storeId) {
		this.storeId = storeId;
	}

	public Integer getAppType() {
		return appType;
	}

	public void setAppType(Integer appType) {
		this.appType = appType;
	}

	public String getDownloadUrl() {
		return downloadUrl;
	}

	public void setDownloadUrl(String downloadUrl) {
		this.downloadUrl = downloadUrl;
	}

	public Integer getClassesId() {
		return classesId;
	}

	public void setClassesId(Integer classesId) {
		this.classesId = classesId;
	}

	public Float getAppVolume() {
		return appVolume;
	}

	public void setAppVolume(Float appVolume) {
		this.appVolume = appVolume;
	}

	public String getApkName() {
		return apkName;
	}

	public void setApkName(String apkName) {
		this.apkName = apkName;
	}
	
	public Integer getTemplateId() {
		return templateId;
	}

	public void setTemplateId(Integer templateId) {
		this.templateId = templateId;
	}
	
	public Integer getPlatformId() {
		return platformId;
	}

	public void setPlatformId(Integer platformId) {
		this.platformId = platformId;
	}

	public String getPlatformName() {
		return platformName;
	}

	public void setPlatformName(String platformName) {
		this.platformName = platformName;
	}

	public List<AdMaterialDetailModel> getMaterials() {
		return materials;
	}

	public void setMaterials(List<AdMaterialDetailModel> materials) {
		this.materials = materials;
	}

	public String getAppDesc() {
		return appDesc;
	}

	public void setAppDesc(String appDesc) {
		this.appDesc = appDesc;
	}
	
}
